const express = require("express");
const app = express();
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
// 解析表单数据的中间件
app.use((req, res, next) => {
  // 表单的具体业务逻辑
  next();
});
app.use((err, req, res, next) => {
  console.log("【Error】:" + err.message);
  res.send("【Error】:" + err.message);
});
app.listen(80, (req, res) => {
  console.log("server is running at port http://127.0.0.1");
});
